package com.compass.doctor.ui.setting.adapter

import android.view.LayoutInflater
import android.view.ViewGroup
import com.compass.doctor.databinding.LayoutDiagnoseItemBinding
import com.compass.doctor.databinding.LayoutDiseaseItemBinding
import com.compass.framework.adapter.BaseBindViewHolder
import com.compass.framework.adapter.BaseRecyclerViewAdapter
import com.compass.framework.model.ArticleInfo
import com.compass.framework.model.ScreenTag

/**
 * Description： 疾病adapter
 * Date:2023/12/20 17:31
 */
class DiseaseAdapter  : BaseRecyclerViewAdapter<ScreenTag, LayoutDiseaseItemBinding>() {



    override fun getViewBinding(
        layoutInflater: LayoutInflater,
        parent: ViewGroup,
        viewType: Int
    ): LayoutDiseaseItemBinding {
        return LayoutDiseaseItemBinding.inflate(layoutInflater, parent, false)
    }

    override fun onBindDefViewHolder(
        holder: BaseBindViewHolder<LayoutDiseaseItemBinding>,
        item: ScreenTag?,
        position: Int
    ) {
        if (item == null) return
        holder.binding.apply {
            actionText.text = item.name

        }
    }
}